const Base = require('./base');

module.exports = class extends Base {
  async getMenuAction() {
    const appName = this.get('appName');
    const permissionService = this.service('public/permissionService');
    return this.success(await permissionService.getMenu(this.roleId,appName));
  }
  
  async getAppListAction() {
    const permissionService = this.service('public/permissionService');
    return this.success(await permissionService.getAppList(this.adminId));
  }
}